using System;
using LambdaGp.Core;

namespace LambdaGp.Operators.Functions.MathFunctions
{    
    public class Cos : UnaryFunction
    {        
        public Cos()
            : base("cos")
        {
        }

        protected override Func<double> CompileUnaryToFunc(Individual individual, Func<double> argument)
        {
            return () => Math.Cos(argument());
        }
    }
}
